package vip.hamlin.dnspod.init;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import java.io.IOException;

/**
 * 初始化spring容器
 * Created by SunShao on 2016/6/1.
 */
@Configuration
@ComponentScan(basePackages = "vip.hamlin.*")
public class Initialize {
    @SuppressWarnings({"ResultOfMethodCallIgnored", "InfiniteLoopStatement"})
    public static void main(String[] args) throws IOException {
        new AnnotationConfigApplicationContext(Initialize.class);
    }
}
